<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet"type="text/css"href="css/css.css">
        <title>Hieu</title>
    </head>


    <body id="khung">
        <div id="banner"></div>

        <div id="menu">
            <ul id="a">
                <li><a href="http://localhost:82/trunghieu-web2/index.php?page=1">Trang Chu</a>  </li>
                <li><a href="#">Manga</a> </li>
                <li><a href="#">Music</a> </li>
                <li><a href="#">Haivl</a> </li>

            </ul>
        </div>




        <div id="f">       
            <div id="h1">
                <h1 align="center">Hu Tieu</h1> 
            </div> 


            <?php
            require_once 'model/works.php';
            $works = new works();
            $work = $works->select_edit(NULL, $_GET['id']);
            ?>


            <form  action="view.php?id=<?php echo $_GET["id"] ?>" method="post" enctype="multipart/form-data">
              
                    <table class="vew2">

                        <tr class="vew">
                            <th>Tên công việc</th>
                            <td><?php echo $work["name"] ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Ngày đăng Thong Tin</th>
                            <td><?php $mydate = getdate($work['posted']); ?> 
                                <?php echo "$mydate[mday] $mydate[month], $mydate[year]"; ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Noi Lam Viec</th>
                            <td><?php echo $work["location"] ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Tên công ty</th>
                            <td><?php echo $work["company_name"] ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Địa Chỉ</th>
                            <td><?php echo $work["company_address"] ?></td>
                        </tr>
                        <tr class="vew">  
                            <th>Mô Tả Công Việc</th>
                            <td><?php echo $work["description"] ?></td>
                        <tr class="vew">
                            <th>Yeu Cau</th>
                            <td><?php echo $work["experience_requirements"] ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Liên Hệ</th>
                            <td><?php echo $work["company_profile"] ?></td>
                        </tr>
                        <tr class="vew">
                            <th>Hinh anh</th>
                            <td><img src="<?php echo $work['image'] ?>" width="100px" height="100px"></td>
                        </tr>


                    </table>

              
                </from>


        </div>

        <div id="u">
            <div id="h1">
                <h1 align="center">Hieu Ban Hu Tieu - C12TDT </h1>
            </div>
        </div>
    </body>
</html>
